<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include::header('奖励条款规则')"/>
</head>
<body class="febs-container" id="febs-incentiveRewardClauseRule">
<div class="febs-body layui-fluid" lay-title="奖励条款规则">
    <div class="febs-body-search">
        <form class="jhg-body layui-form layui-table-form" lay-filter="incentiveRewardClauseRule-table-form"
              id="incentiveRewardClauseRule-table-form">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-inline" id="post-tenant"
                             th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                            <label class="layui-form-label layui-form-label-sm">公司名称</label>
                            <div class="layui-input-inline" style="width:280px;">
                                <select name="tenantId" id="tenantId" lay-search="" lay-filter="selectCompany">
                                    <option th:each="item:${tenantList }"
                                            th:value="${item.tenantId}" th:text="${item.tenantName}"
                                            th:selected="${tenantId ==item.tenantId}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">状态</label>
                            <div class="layui-input-inline">
                                <select name="status" id="status">
                                    <option value="">请选择</option>
                                    <option value="1">启用</option>
                                    <option value="0">禁用</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">适用范围</label>
                            <div class="layui-input-inline">
                                <select name="useScope" id="useScope">
                                    <option value="">请选择</option>
                                    <option value="1">本工</option>
                                    <option value="2">外包</option>
                                    <option value="3">外协</option>
                                    <option value="4">承包队</option>
                                    <option value="10">全部</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div id="query" class="layui-btn">
                                <em class="layui-icon">&#xe615;</em> 查询
                            </div>
                            <div id="selectIncentiveRewardClause" class="layui-btn">
                                <em class="layui-icon">&#xe615;</em> 选择奖励条款
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="layui-row layui-col-space15" style="margin: 0px -7.5px;">
        <div class="layui-col-md4" style="padding: 0px 7.5px;">
            <div class="febs-table-full">
                <table lay-filter="incentiveRewardClauseTable" name="incentiveRewardClauseTable"
                       lay-data="{id: 'incentiveRewardClauseTable'}"></table>
            </div>
        </div>
        <div class="layui-col-md8" style="padding: 0px 7.5px;">
            <div class="febs-table-full">
                <table lay-filter="incentiveRewardClauseRuleTable" name="incentiveRewardClauseRuleTable"
                       lay-data="{id: 'incentiveRewardClauseRuleTable'}"></table>
            </div>
        </div>
    </div>
</div>
<th:block th:include="include::foot"/>
<script th:src="@{/febs/js/incentive/incentiveRewardClauseRule/incentiveRewardClauseRuleList.js(v=1)}"></script>
<script type="text/html" id="incentiveRewardClause-toolbar">
    <div lay-event="add" class="layui-btn layui-btn-sm" shiro:hasPermission="incentiveRewardClause:add">
        <em class="layui-icon">&#xe654;</em> 新增
    </div>
</script>
<script type="text/html" id="incentiveRewardClause-tool">
    <span shiro:lacksPermission="incentiveRewardClause:edit,incentiveRewardClause:delete">
                <span class="layui-badge-dot febs-bg-orange"></span> 无权限
             </span>
    <a lay-event="edit" shiro:hasPermission="incentiveRewardClause:edit">
        <em class="layui-icon febs-edit-area febs-blue">&#xe7a4;</em></a>
    <a lay-event="del" shiro:hasPermission="incentiveRewardClause:delete">
        <em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script type="text/html" id="incentiveRewardClauseRule-toolbar">
    <div class="layui-inline">
        <label class="layui-form-label layui-form-label-sm" style="width: auto;">条款编号</label>
        <div class="layui-input-inline" style="width: 200px;">
            <input type="text" name="clauseNo" autocomplete="off" class="layui-input" placeholder="请输入条款编号">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label layui-form-label-sm" style="width: auto;">规则状态</label>
        <div class="layui-input-inline" style="width: 200px;">
            <select name="ruleStatus" id="ruleStatus">
                <option value="1">启用</option>
                <option value="0">禁用</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <button id="ruleQuery" lay-event="ruleQuery" type="button" class="layui-btn"
                shiro:hasPermission="incentiveRewardClauseRule:view">
            <em class="layui-icon">&#xe615;</em> 查询
        </button>
    </div>

    <div class="layui-inline">
        <button id="ruleAdd" lay-event="ruleAdd" type="button" class="layui-btn"
                shiro:hasPermission="incentiveRewardClauseRule:add">
            <em class="layui-icon">&#xe654;</em> 新增奖励规则
        </button>
    </div>
</script>
<script type="text/html" id="incentiveRewardClauseRule-option">
    <span shiro:lacksPermission="incentiveRewardClauseRule:edit,incentiveRewardClauseRule:delete">
        <span class="layui-badge-dot febs-bg-orange"></span> 无权限
        </span>
    <a lay-event="edit" shiro:hasPermission="incentiveRewardClauseRule:edit"><em
            class="layui-icon febs-edit-area febs-blue">&#xe7a4;</em></a>
    <a lay-event="del" shiro:hasPermission="incentiveRewardClauseRule:delete"><em
            class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script type="text/html" id="statusOption">
    <input type="checkbox" name="statusOption" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
           lay-filter="statusOption" lay-event="statusEvent" {{ d.status== '1' ? 'checked' : '' }} />
</script>
<script type="text/html" id="statusOptionRule">
    <input type="checkbox" name="statusOption" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
           lay-filter="statusOptionRule" lay-event="statusEvent" {{ d.status== '1' ? 'checked' : '' }} />
</script>
<script data-th-inline="javascript">
    var disposeFormList = [[${disposeFormList}]];
</script>
</body>
</html>